// 员工
import layout from '@/layout'
export default {
  path: '/employee',
  component: layout,
  //   redirect: '',
  meta: {
    title: '员工管理',
    icon: 'el-icon-s-custom'
  },
  children: [
    {
      path: '/courier',
      name: 'courier',
      component: () => import('@/views/employee/courier'),
      meta: {
        title: '快递员管理'
      }
    },
    {
      path: '/driver',
      name: 'driver',
      component: () => import('@/views/employee/driver'),
      meta: {
        title: '司机管理'
      }
    },
    {
      path: '/workforce',
      name: 'workforce',
      component: () => import('@/views/employee/workforce'),
      meta: {
        title: '排班管理'
      }
    },
    {
      path: '/driverDetail/:id?',
      name: 'driverDetail',
      component: () => import('@/views/employee/driver/driverDetail.vue'),
      hidden: true
    },
    /* 排版设置 */
    {
      path: '/sort/:id?',
      name: 'sort',
      component: () => import('@/views/employee/workforce/sort.vue'),
      hidden: true
    },
    /* 快递员地图 */
    {
      path: '/couierMap/:id?/:name?',
      name: 'couierMap',
      component: () => import('@/views/employee/courier/couierMap.vue'),
      hidden: true
    }

  ]
}
